{
	// two dimensional checker board
	int $x;
	int $modX;
	int $y;
	int $modY;
	for ($x = 0; $x < 10; $x++)
	{
		$modX = $x % 2;
		for ($y = 0; $y < 10; $y++)
		{
			$modY = $y % 2;
			// place a cube on the odds
			if ($modX && $modY)
			{
				polyCube;
				move $x $y 0;
			}
			// place a cube on the evens
			if (!$modX && !$modY)
			{
				polyCube;
				move $x $y 0;
			}
		}
	}
}